
package {
	import com.greensock.TweenMax;
	import com.greensock.plugins.GlowFilterPlugin;
	import com.greensock.plugins.TweenPlugin;
	
	import flash.display.MovieClip;
	import flash.events.MouseEvent;
	
	public class BubbleButton extends Button {
		
		
		public function BubbleButton(view:MovieClip) {
			super(view);
			TweenPlugin.activate([GlowFilterPlugin]);
		}
		
		protected override function onRollOver(e:MouseEvent):void {
			TweenMax.to(_view, 1, {glowFilter:{color:0xFFFFFF, alpha:1}});	
		}
		
		protected override function onRollOut(e:MouseEvent):void {
			TweenMax.to(_view, 1, {glowFilter:{color:0xFFFFFF, alpha:0}});			
		}
	}
}